<div class="m-container m-orderAll" ng-controller="orderController" ng-if="showReady" >
    <section class="m-order" ng-show="path1=='shopcart' && path2 =='order' && !path3" >
        <main class="content" scroll-down2>
            <div class="top dfc aifs jsc" ng-show="!client.id && identity == 1" ui-sref="shopcart.orderPay.client">
                <span class="f16 c798 ls1">请选择客户</span>
            </div>
            <div class="top dfc aifs jssa" ng-show="client.id  && identity == 1" ui-sref="shopcart.orderPay.client">
                <span class="f18 c6a6 ls1">{{client.name}}</span>
                <span class="c6a6 ls1">{{client.telephone}}</span>
            </div>
            <div class="top dfc aifs jssa nobg" ng-show="identity == 0">
                <span class="f18 c6a6 ls1">{{user.nickname}}</span>
                <span class="c6a6 ls1">{{user.telephone}}</span>
            </div>
            <ul>
                <li ng-repeat="item in productList" class="productLi">
                    <product-item2></product-item2>
                </li>
            </ul>
            <div class="coupon dfr aic jssb" ui-sref="shopcart.orderPay.coupon" ng-show="order.cTotalPrice>0">
                <span>优惠券</span>
                <span ng-show="!parent.discount">请选择</span>
                <span ng-show="parent.discount > 0">-{{parent.discount}}</span>
            </div>
            <dl class="address">
                <dt class="addressDt"> 采样工具寄送地址（默认寄送送检人地址） </dt>
                <div class="addressDd">
                    <dd class="dfr aic jssb switchBtn" ng-show="identity == 1 || forwardId>0">
                        <span>健康管家</span>
                        <div class="switch {{samplerSwitch?'active':''}}">
                            <span class="sbtn" ng-click="samplerSwitchFuc()"></span>
                        </div>
                    </dd>
                    <dd class="dfr aic jssb">
                        <input type="text" ng-model="sampler.name" ng-readonly = "true" placeholder="送检人姓名">
                        <input ng-model="sampler.telephone" placeholder="送检人手机号" ng-readonly = "true">
                    </dd>
                    <dd>
                        <textarea ng-model="sampler.address" row="2" placeholder="送检人地址" ></textarea>
                        <!-- <div contenteditable="{{(!samplerSwitch && !client.address) || (samplerSwitch &&!forward.address)}}">地址:{{sampler.address}}</div> -->
                    </dd>
                </div>

                <dt class="addressDt"> 检测报告寄送地址（默认寄送送检人地址） </dt>
                <div class="addressDd">
                    <dd class="dfr aic jssb switchBtn" ng-show="identity == 1 || forwardId>0">
                        <span>健康管家</span>
                        <div class="switch {{reporterSwitch?'active':''}}">
                            <span class="sbtn" ng-click="reportSwitchFuc()"></span>
                        </div>
                    </dd>
                    <dd class="dfr aic jssb">
                        <input type="text" ng-model="reporter.name" ng-readonly = "true" placeholder="送检人姓名">
                        <input ng-model="reporter.telephone" placeholder="送检人手机号" ng-readonly = "true">
                    </dd>
                    <dd>
                        <textarea ng-model="reporter.address" row="2" placeholder="送检人地址"></textarea>
                    </dd>
                </div>
            </dl>
            <p class="disclaimer dfr" ><span class="agree {{agree?'active':''}}" ng-click="agree = !agree"></span>我已阅读并同意基因团的<a class="cmain" ui-sref="shopcart.orderPay.disclaimer">《免责条款》</a></p>
        </main>
        <footer class="bottom dfr aic">
            <div class="total {{identity==1?'':'width2'}}">合计:<span class="f12 cmain">￥</span><span class="cmain">{{((order.totalPrice - parent.discount)|number:2)}}</span></div>
            <button class="forward" ng-click="forwardReady()" pointer-disable ng-show="identity == 1">发给客户下单</button>
            <button class="pay" ng-click="submit()" ng-disabled="!agree || paying " pointer-disable>立即支付</button>
        </footer>
    </section>
    <div ng-include="'components/client/clientSelect.html'" ng-show="path1=='shopcart' && path2 =='order'&& path3=='client'"></div>
    <div ng-include="'components/user/coupon/couponSelect.html'" ng-show="path1=='shopcart' && path2 =='order'&& path3=='coupon'"></div>
</div>
<div ng-include="'components/order/orderPay/disclaimer.html'" ng-show="path1=='shopcart' && path2 =='order' && path3 =='disclaimer'"></div>